package com.foreknow.practice.exam;

public class CompanyImpl implements Money {
    @Override
    public void salary() {
        Manager manager = new Manager("小明");
      double balance=  manager.salary+manager.balance1+manager.bonus;
        System.out.println(manager.name+"薪资是: "+manager.salary+"卡余额是:"+balance);


        Clerk clerk = new Clerk("小亮");
        double clerk1=  clerk.salary+clerk.balance;
        System.out.println(clerk.name+"薪资是: "+clerk.salary+"卡余额是:"+clerk1);
    }
}
